﻿using System.Collections.Generic;
using DapperExtensions.Mapper;
using ZilLion.Service.Crm.ModelBase.EntityBase.Identity;

namespace ZilLion.Service.WechatService.Domain.WebApiEntity.CRM
{
    public class AconfigItem
    {
        public string jappid { get; set; }

        public string jkey { get; set; }

        public string jvalue { get; set; }

        public short jisforbid { get; set; }
    }

    public class AconfigItemMapper : ClassMapper<AconfigItem>
    {
        public AconfigItemMapper()
        {
            Table("xtwxappidjoininfo");
            Map(f => f.jappid).Column("jappid").Key(KeyType.Assigned);
            Map(f => f.jkey).Column("jkey").Key(KeyType.Assigned);
            Map(f => f.jvalue).Column("jvalue");
            Map(f => f.jisforbid).Column("jisforbid");
        }
    }

    public class AconfigGroup : ResponseResultInfo
    {
        public string jappid { get; set; }

        public int logsn { get; set; }

        public IEnumerable<AconfigItem> ConfigItems { get; set; }

        public AconfigItem configItem { get; set; }
    }
}
